﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using _180FrameWork.DataBaseHelper.OracleExtend;

namespace _180FrameWork.DataBaseHelper
{
    public class SqlBuilderFactory
    {
        private static ISqlBuilder oracleSqlBuilder = new OracleSqlBuilder();
        public static ISqlBuilder CreateSqlBuilder(IDbConnection db)
        {
            switch (db.GetType().Name)
            {
                case "OracleConnection":
                    return oracleSqlBuilder;
                    break;
                default:
                    return null;
            }
        }
    }
}
